QT += charts websockets network
CONFIG += c++11
requires(qtConfig(combobox))

HEADERS += \
    themewidget/themewidget.h \
    mqttwebsocket/websocketiodevice.h \
    mqttwebsocket/clientsubscription.h

SOURCES += \
    main.cpp \
    themewidget/themewidget.cpp \
    mqttwebsocket/websocketiodevice.cpp \
    mqttwebsocket/clientsubscription.cpp

target.path = $$[QT_INSTALL_EXAMPLES]/charts/chartthemes
INSTALLS += target

FORMS += \
    themewidget.ui

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/thirdpart/qmqtt/wasm/lib/ -lQt5Mqtt
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/thirdpart/qmqtt/wasm/lib/ -lQt5Mqttd
else:unix: LIBS += -L$$PWD/thirdpart/qmqtt/wasm/lib/ -lQt5Mqtt

INCLUDEPATH += $$PWD/thirdpart/qmqtt/wasm/include
DEPENDPATH += $$PWD/thirdpart/qmqtt/wasm/include
